package com.mc.lp.shared.vo;

/*
 * @author aphanda
 * @date Sep 14, 2014
 * @time 7:28:28 PM
 */

public class AcademicRecordVO implements IValueObject {

	
	private static final long serialVersionUID = 1L;
	private Long cid;
	private Long sid;
	private Long subjectId;
	private Long year;
	private int gradeId;
	private int termId;
	private Long marks;
	private int gradePointId;
	private Long maxMarks;
	private String remarks;
	private boolean newRow;
	private boolean rowDeleted;
	private Long avgMarks;
	private int attributeWeightage;
	
	public int getAttributeWeightage() {
		return attributeWeightage;
	}

	public void setAttributeWeightage(int attributeWeightage) {
		this.attributeWeightage = attributeWeightage;
	}

	public boolean isNewRow() {
		return newRow;
	}

	public void setNewRow(boolean newRow) {
		this.newRow = newRow;
	}
	
	public Long getCid() {
		return cid;
	}

	public boolean isRowDeleted() {
		return rowDeleted;
	}

	public void setRowDeleted(boolean rowDeleted) {
		this.rowDeleted = rowDeleted;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}

	public Long getMarks() {
		return marks;
	}

	public void setMarks(Long marks) {
		this.marks = marks;
	}

	
	public Long getMaxMarks() {
		return maxMarks;
	}

	public void setMaxMarks(Long maxMarks) {
		this.maxMarks = maxMarks;
	}
	
	
	

	@Override
	public String toString() {
		return "AcademicRecordVO [" + (subjectId != null ? "subjectId=" + subjectId + ", " : "")
				+ "gradeId=" + gradeId + ", termId=" + termId + ", "
				+ (marks != null ? "marks=" + marks : "") + ", Weightage: "+this.attributeWeightage+"]";
	}

	@Override
	public int hashCode() {
		return (int) ((this.cid+1)*7);
	}
	
	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}

	public Long getYear() {
		return year;
	}

	public void setYear(Long year) {
		this.year = year;
	}

	
	public int getGradeId() {
		return gradeId;
	}

	public void setGradeId(int gradeId) {
		this.gradeId = gradeId;
	}

	
	public int getGradePointId() {
		return gradePointId;
	}

	public void setGradePointId(int gradePointId) {
		this.gradePointId = gradePointId;
	}

	public int getTermId() {
		return termId;
	}

	public void setTermId(int termId) {
		this.termId = termId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Long getAvgMarks() {
		return avgMarks;
	}

	public void setAvgMarks(Long avgMarks) {
		this.avgMarks = avgMarks;
	}
	
	
	
	
}
